| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | import Vue from 'vue'; |
||
| 7 | $(function() { |
||
| 8 | // find the element we're going to mount our component to |
||
| 9 | $('[data-component=relationships]').each(function() { |
||
| 10 | let el = $(this)[0]; |
||
| 11 | |||
| 12 | // parse our props from data attributes |
||
| 13 | const lang = JSON.parse(el.dataset.lang); |
||
| 14 | const name = el.dataset.name; |
||
| 15 | const value = JSON.parse(el.dataset.value); |
||
| 16 | |||
| 17 | // instantiate our component and mount it to the dom |
||
| 18 | new Vue({ |
||
|
|
|||
| 19 | el, |
||
| 20 | render: h => h(RelationshipsComponent, { |
||
| 21 | props: { lang, name, value }, |
||
| 22 | }), |
||
| 23 | }); |
||
| 24 | }); |
||
| 25 | }); |
||
| 26 |